<template>
  <NstdPopover :visible="visible" placement="top" :width="160">
    <p>Are you sure to delete this?</p>
    <div style="text-align: right; margin: 0">
      <NstdButton size="small" text @click="visible = false">cancel</NstdButton>
      <NstdButton size="small" type="primary" @click="visible = false"
        >confirm</NstdButton
      >
    </div>
    <template #reference>
      <NstdButton @click="visible = true">Delete</NstdButton>
    </template>
  </NstdPopover>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const visible = ref(false)
</script>
